#include "acceptnewfd.hpp"

namespace oraysock5 {

AcceptNewFd::AcceptNewFd(std::shared_ptr<IPAddress> remoteAddr,
    std::shared_ptr<IPAddress> listenAddr,
    std::shared_ptr<EventBuffer> iobuf)
    : EventHandler()
{
    remote_addr_ = remoteAddr;
    listen_addr_ = listenAddr;
    iobuf_ = iobuf;
}

std::shared_ptr<IPAddress> AcceptNewFd::remote_addr() const
{
    return remote_addr_;
}

std::shared_ptr<IPAddress> AcceptNewFd::listen_addr() const
{
    return listen_addr_;
}

}
